/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package universityModel.utils;

/**
 *
 * @author Admin
 */
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class PrintToFile implements OutputInfo {
    private String path = "curr path";

    public PrintToFile(String path) {
        this.path = path;
    }
   
    @Override
    public void print(String info) {
        try {
            BufferedWriter in = new BufferedWriter(new FileWriter(path));
        } catch (IOException ex) {
            Logger.getLogger(PrintToFile.class.getName()).log(Level.SEVERE, null, ex);
        }
        //some code to do
    }
}

